<?php

class Links_Block_Categories extends Kernel_Block 
{
    
    /**
     * Return template data. 
     *
     * @return  array
     */
    public function getData() 
    {
        $items = array();
        foreach (Links_Utils::filtersList() as $id => $name) {
            $items[] = array(
                'name' => $name, 
                'url' => array(Links_Utils::FILTER => $id), 
                'active' => $id == Links_Utils::activeFilter()
                );
        }
        return array('items' => $items);
    }
    
}